import {defineStore} from 'pinia'
import {ref} from 'vue'
/*
    两个参数
 */
export const useStore = defineStore('token',()=>{
    const token = ref('')
    const setToken = (value) => {
        token.value = value
    }
    const removeToken = () => {
        token.value=''    
    }
    return {token,setToken,removeToken}
},{
    persist:true
});